import request from "@/utils/request";
export function getCategoryList(){
    return request.get('/category/categoryList');
}

export function addCategory(category){
    return request.post('/category/addCategory',category);
}

export function editCategory(category){
    return request.post('/category/editCategory',category);
}

export function deleteCategory(category){
    return request.delete('/category/deleteCategory',{data:category});
}